 /**
 * 通用css样式布局处理
 * Copyright (c) 2019 ruoyi
 */
 @import './theme.scss';

/** 基础通用 **/
.pt5 {
	padding-top: 5px !important;
}
.pt10 {
	padding-top: 10px !important;
}
.pt15 {
	padding-top: 15px !important;
}
.pt20 {
	padding-top: 20px !important;
}
.pb5 {
	padding-bottom: 5px !important;
}
.pb10 {
	padding-bottom: 10px !important;
}
.pb12 {
	padding-bottom: 12px !important;
}
.pb15 {
	padding-bottom: 15px !important;
}
.pb20 {
	padding-bottom: 20px !important;
}
.pr5 {
	padding-right: 5px !important;
}
.pr10 {
	padding-right: 10px !important;
}
.pr50 {
	padding-right: 50px !important;
}
.mt5 {
	margin-top: 5px !important;
}
.mr5 {
	margin-right: 5px !important;
}
.mt0 {
	margin-top: 0 !important;
}
.mb0 {
	margin-bottom: 0 !important;
}
.mb5 {
	margin-bottom: 5px !important;
}
.mb8 {
	margin-bottom: 8px !important;
}
.ml0 {
	margin-left: 0 !important;
}
.ml5 {
	margin-left: 5px !important;
}
.ml8 {
	margin-left: 8px !important;
}
.mt10 {
	margin-top: 10px !important;
}
.mr8 {
	margin-right: 8px !important;
}
.mr10 {
	margin-right: 10px !important;
}
.mb10 {
	margin-bottom: 10px !important;
}
.mmb10 {
	margin-bottom: -10px !important;
}
.ml10 {
	margin-left: 10px !important;
}
.mt15 {
	margin-top: 15px !important;
}
.mr15 {
	margin-right: 15px !important;
}
.mb15 {
	margin-bottom: 15px !important;
}
.ml15 {
	margin-left: 15px !important;
}
.mb18 {
  margin-bottom: 18px !important;
}
.mt18 {
  margin-top: 18px !important;
}
.mt20 {
	margin-top: 20px !important;
}
.mt25 {
	margin-top: 25px !important;
}
.mr20 {
	margin-right: 20px !important;
}
.mb20 {
	margin-bottom: 20px !important;
}
.ml20 {
	margin-left: 20px !important;
}
// width
.w-50 {
  width: 50px !important;
}
.w-62 {
  width: 62px !important;
}
.w-68 {
  width: 68px !important;
}
.w-80 {
  width: 80px !important;
}
.w-85 {
  width: 85px !important;
}
.w-88 {
  width: 88px !important;
}
.w-90 {
  width: 90px !important;
}
.w-100 {
  width: 100px !important;
}
.w-120 {
  width: 120px !important;
}
.w-130 {
  width: 130px !important;
}
.w-150 {
  width: 150px !important;
}
.w-155 {
  width: 155px !important;
}
.w-172 {
  width: 172px !important;
}
.w-180 {
  width: 180px !important;
}
.w-198 {
  width: 198px !important;
}
.w-210 {
  width: 210px !important;
}
.w-220 {
  width: 220px !important;
}
.w-230 {
  width: 230px !important;
}
.w-290 {
  width: 290px !important;
}
.w-300 {
  width: 300px !important;
}
.w-400 {
  width: 400px !important;
}
.w-416 {
  width: 416px !important;
}
.w-full {
  width: 100% !important;
}

// height
.h-66 {
  height: 66px !important;
}

// font
.font-weight {
  font-weight: bold!important;
}

/*------ a ------*/
.page-link {
  cursor: pointer;
  color: $btn-font-color !important;
  &:hover {
    text-decoration: underline;
  }
  &.el-popover__reference {
    text-decoration: underline;
  }
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
	font-family: inherit;
	font-weight: 500;
	line-height: 1.1;
	color: inherit;
}

// .el-dialog__wrapper.scrollbar .el-dialog .el-dialog__body {
//     overflow: auto;
// 	overflow-x: hidden;
// 	max-height: 70vh;
// 	padding: 10px 20px 0;
// }

/** 行 flex 布局 **/
.flex-row {
  display: flex;
}
.flex-row-1 {
  flex: 1;
  min-width: 0;
}
.flex-justify-center {
  justify-content: center;
}
.flex-align-center {
  align-items: center;
}

/** in-title **/
.in-title {
  padding-bottom: 10px;
  color: #606266;
  font-size: 14px;
  font-weight: 700;
}

/** 搜索栏布局 **/
.top-search {
  margin-left: -10px;
  .search-form {
    max-height: 84px;
    overflow: hidden;
    transition: max-height .5s linear;
    &.show-more {
      max-height: 600px !important;
    }
  }
  .el-form-item {
    display: inline-flex;
    padding-left: 10px;
    margin-right: 0;
    margin-bottom: 10px;
    // width: 20%;
    width: 16.6666%;
    box-sizing: border-box;
    &__content {
      flex: 1;
      display: inline-flex;
      .el-input,
      .el-select,
      .el-textarea,
      .el-date-editor {
        width: 100%;
      }
    }
    .el-input-group__prepend {
      background-color: #fff;
      color: #606266;
    }
    &--mini {
      .el-input,
      .el-select,
      .el-textarea,
      .el-date-editor {
        width: 100%;
        &--suffix {
          .el-input__inner {
            padding-right: 20px;
          }
        }
        &__suffix {
          right: 0px;
          line-height: 30px;
        }
      }
      .el-range__icon {
        padding-top: 2px;
      }
      .el-range-separator {
        line-height: 28px;
      }
      .el-input__inner {
        padding: 0 10px;
        height: 30px;
        line-height: 30px;
      }
      .el-range__close-icon {
        margin-right: -10px;
        line-height: 30px;
      }
    }
  }
  .append-item {
    display: inline-flex;
    padding-left: 10px;
    margin-right: 0;
    width: 33.3332%;
    box-sizing: border-box;
    .el-form-item {
      padding-left: 0;
      margin-bottom: 0;
      &.append-l {
        flex: 1;
        min-width: 0;
        .el-input__inner {
          border-right: none;
          border-radius: 4px 0 0 4px;
        }
      }
      &.append-r {
        flex: 2;
        min-width: 0;
        .el-input__inner {
          border-radius: 0 4px 4px 0;
        }
      }
    }
  }
  .search-btn-part {
    margin-right: 0;
    .el-form-item__content {
      line-height: 0;
      .el-button {
        padding-left: 10px;
        padding-right: 10px;
        height: 30px;
        &.more-btn {
          padding-right: 0!important;
          margin-left: 0!important;
        }
      }
    }
  }
  &.top-more-search {
    .search-form {
      display: flex;
      flex-wrap: wrap;
      max-height: 126px;
      .search-more-item {
        display: contents;
      }
      .search-btn-part {
        margin-left: auto;
      }
    }
  }
}
/** 屏幕 >= 1759 **/
@media screen and (min-width: 1759px) {
  /** 搜索栏布局 **/
  .top-search {
    .el-form-item {
      width: 14.2857%;
    }
    .append-item {
      width: 28.5714%;
    }
    .search-btn-part {
      .el-form-item__content {
        .el-button {
          padding-left: 10px;
          padding-right: 10px;
        }
      }
    }
  }
}

/** 表格页面统计行 **/
.page-total-row {
  display: flex;
  align-items: center;
  margin: 10px 0;
  border: solid 1px #cdd9e6;
  .total-cell {
    position: relative;
    flex: 1;
    min-width: 0;
    & + .total-cell {
      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 200%;
        background: #cdd9e6;
        transform-origin: 0 0;
        transform: scale(0.5, 0.5);
      }
    }
    .total-title {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      padding: 10px;
      line-height: 17px;
      border-bottom: solid 1px #cdd9e6;
      background: #eaf1ff;
      // background: #F5F7FA;
      color: #333;
      font-size: 16px;
      font-weight: 500;
      [class^="fonticon-"] {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-right: 8px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        color: #0d69f6;
        font-size: 24px;
      }
      .total-num {
        display: inline-flex;
        align-items: flex-end;
        padding-left: 8px;
        margin-bottom: 1px;
        height: 15px;
        line-height: 16px;
        color: #ff0000;
        font-size: 20px;
        .num-unit {
          line-height: 10px;
          font-size: 12px;
          font-style: normal;
        }
      }
      &.title-between {
        justify-content: flex-start;
        .title-name {
          display: inline-flex;
          align-items: flex-end;
        }
        .title-val {
          display: inline-flex;
          align-items: flex-end;
          .val-name {
            margin-left: 20px;
            color: #999;
            font-size: 16px;
            font-weight: 400;
          }
        }
      }
    }
    .content-row {
      display: flex;
      align-items: center;
      padding: 0 10px;
      line-height: 20px;
      .row-cell {
        flex: 1;
        min-width: 0;
        display: flex;
        // align-items: center;
        flex-direction: column;
        padding: 10px 0;
        .cell-head {
          padding-top: 2px;
          // padding-left: 5px;
          padding-bottom: 5px;
          line-height: 20px;
          // border-left: solid 3px #0d69f6;
          text-align: center;
          color: #999;
          font-size: 14px;
        }
        .cell-value {
          // padding-top: 10px;
          // padding-bottom: 5px;
          height: 24px;
          line-height: 24px;
          box-sizing: border-box;
          text-align: center;
          font-size: 24px;
          font-weight: 600;
          .num-unit {
            padding-right: 2px;
            line-height: 20px;
            vertical-align: bottom;
            color: #ff0000;
            font-size: 20px;
            font-style: normal;
          }
        }
        & + .row-cell {
          border-left: dashed 1px #cdd9e6;
        }
      }
      & + .content-row {
        border-top: dashed 1px #cdd9e6;
      }
    }
  }
  &.row-3 {
    .total-cell {
      .content-row {
        .cell-head {
          padding-top: 0;
          // padding-bottom: 3px;
          line-height: 18px;
          font-size: 14px;
        }
        .cell-value {
          height: 18px;
          line-height: 18px;
          font-size: 18px;
          font-weight: 500;
        }
      }
    }
  }
}

/** 表单布局 **/
.form-header {
	font-size:15px;
	color:#6379bb;
	border-bottom:1px solid #ddd;
	margin:8px 10px 25px 10px;
	padding-bottom:5px
}

/** 表格布局 **/
.pagination-container {
	position: relative;
	height: 25px;
	margin-bottom: 10px;
	margin-top: 15px;
	padding: 10px 20px !important;
}

/* tree border */
.tree-border {
  margin-top: 5px;
  border: 1px solid #e5e6e7;
  background: #FFFFFF none;
  border-radius:4px;
}

.pagination-container .el-pagination {
	right: 0;
	position: absolute;
}

.el-table .fixed-width .el-button--mini {
	padding-left: 0;
	padding-right: 0;
	width: inherit;
}

/** 表格更多操作下拉样式 */
.el-table .el-dropdown-link,
.el-table .el-dropdown-selfdefine {
	cursor: pointer;
	margin-left: 5px;
}

.el-table .el-dropdown,
.el-icon-arrow-down {
	font-size: 12px;
}

.el-tree-node__content > .el-checkbox {
	margin-right: 8px;
}

.list-group-striped > .list-group-item {
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	padding-left: 0;
	padding-right: 0;
}

.list-group {
	padding-left: 0px;
	list-style: none;
}

.list-group-item {
	border-bottom: 1px solid #e7eaec;
	border-top: 1px solid #e7eaec;
	margin-bottom: -1px;
	padding: 11px 0px;
	font-size: 13px;
}

.pull-right {
	float: right !important;
}

.el-card__header {
	padding: 14px 15px 7px;
	min-height: 40px;
}

.el-card__body {
	padding: 15px 20px 20px 20px;
}

.card-box {
	padding-right: 15px;
	padding-left: 15px;
	margin-bottom: 10px;
}

/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
  background: #20B2AA;
  border-color: #20B2AA;
  color: #FFFFFF;
}

.el-button--cyan:focus,
.el-button--cyan:hover {
  background: #48D1CC;
  border-color: #48D1CC;
  color: #FFFFFF;
}

.el-button--cyan {
  background-color: #20B2AA;
  border-color: #20B2AA;
  color: #FFFFFF;
}

/* text color */
.text-navy {
	color: #1ab394;
}

.text-primary {
	color: inherit;
}

.text-success {
	color: #1c84c6;
}

.text-info {
	color: #23c6c8;
}

.text-warning {
	color: #f8ac59;
}

.text-danger {
	color: #ed5565;
}

.text-muted {
	color: #888888;
}

/* image */
.img-circle {
	border-radius: 50%;
}

.img-lg {
	width: 120px;
	height: 120px;
}

.avatar-upload-preview {
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 200px;
	border-radius: 50%;
	box-shadow: 0 0 4px #ccc;
	overflow: hidden;
}

/* 拖拽列样式 */
.sortable-ghost{
	opacity: .8;
	color: #fff!important;
	background: #42b983!important;
}

.top-right-btn {
	position: relative;
	float: right;
}

// part-box
.part-box {
  padding: 12px 10px 0 10px;
  max-height: 1000px;
  transition: max-height .5s linear;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  & + .part-box {
    margin-top: 10px;
  }
  .el-form-item {
    &.has-cell-row {
      margin-bottom: 0;
    }
    &__content {
      .el-col {
        padding-left: 5px;
        padding-right: 5px;
        &:first-child {
          padding-left: 0 !important;
          // padding-right: 5px !important;
        }
        &:last-child {
          padding-right: 0 !important;
          // padding-left: 5px !important;
        }
      }
    }
    .el-input,
    .el-input-number,
    .el-select,
    .form-like-input {
      width: 100%;
      font-size: 12px;
    }
  }
  .has-unit {
    .el-form-item__content {
      position: relative;
      padding-right: 35px;
      .form-item-unit {
        position: absolute;
        right: 0;
        width: 28px;
        text-align: left;
      }
    }
  }
  .value-text {
    color: #666;
  }
  .draggable-cell {
    .el-form-item__label,
    .el-table__header-wrapper {
      cursor: move;
    }
  }
  &.hide {
    max-height: 40px !important;
    .tooltip-btn {
      transform: rotate(-90deg);
    }
  }
}
.part-title {
  display: flex;
  align-content: center;
  position: relative;
  margin-bottom: 12px;
  .title-content {
    display: flex;
    align-content: center;
    margin-top: -5px;
  }
  .title-name {
    padding-left: 5px;
    margin: 0 0 5px 0;
    height: 16px;
    line-height: 19px;
    border-left: 2px solid #1890ff;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: normal;
    .color-red {
      font-size: 12px;
    }
  }
  .el-form-item {
    margin-bottom: 0;
    .el-input,
    .el-input-number,
    .el-select,
    .form-like-input {
      width: 100%;
    }
  }
  .el-button {
    position: absolute;
    top: -4px;
    right: 0;
    &.tooltip-btn {
      display: flex;
      justify-content: center;
      align-items: center;
      top: -6px;
      padding: 0;
      width: 28px;
      height: 28px;
      transition: transform .5s;
      .el-icon-arrow-right {
        font-size: 14px;
      }
    }
  }
  .l-btn {
    position: relative;
    top: -3px;
    padding: 4px 10px;
    margin-left: 8px;
    min-width: 56px;
    height: 28px;
    line-height: 18px;
  }
  .title-more-btn {
    position: relative;
    top: -3px;
    padding: 4px 10px;
    margin-left: 8px;
    min-width: 56px;
    height: 28px;
    line-height: 20px;
  }
}
/** page-tab-box **/
.page-tab-box {
  position: relative;
  .el-tabs {
    &__active-bar{
      position: relative;
      top: 37px;
      left: -3px;
      height: 3px;
    }
    // &__header {
    //   margin-bottom: 17px;
    // }
    &__nav {
      border: none !important;
      &-wrap {
        margin-bottom: -5px;
      }
    }
    &__item {
      padding: 0px 12px !important;
      height: 34px;
      line-height: 30px;
      border-bottom: none !important;;
      border-radius: 4px 4px 0 0;
      overflow: hidden;
      font-size: 14px;
      .tab-label {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 2px;
        margin-top: -1px;
        .label-name{
          font-size: 12px;
          font-weight: bold;
        }
        .label-tip {
          display: inline-block;
          padding: 0 8px;
          margin-left: 5px;
          line-height: 20px;
          border-radius: 4px;
          background-color: $active-color;
          color: #fff;
          font-size: 12px;
        }
      }
      &.is-active {
        color: $base-color;
      }
    }
  }
  .tab-tip {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 40px;
    font-size: 14px;
  }
  &-right{
    position: absolute;
    right:0px;
    top:0px;
  }
}

.form-item-title {
  line-height: 32px;
  color: #606266;
  font-size: 14px;
  font-weight: 700;
  .title-btn {
    float: right;
    margin-top: 1px;
  }
}
.table-list {
  &.el-table {
    td, th {
      padding: 5px 0;
      // .cell {
      //   text-align: center;
      // }
    }
    .el-table-column--selection {
      .cell {
        padding-left: 10px;
        padding-right: 10px;
      }
    }
  }
  .el-form-item {
    margin-bottom: 0 !important;
    .el-form-item__content {
      line-height: 28px;
    }
    .el-input {
      margin-right: 0;
      width: 100%;
      .el-input__inner {
        padding-left: 8px;
        padding-right: 8px;
        height: 28px;
        line-height: 28px;
      }
      &.el-date-editor {
        .el-input__inner {
          padding-left: 30px;
        }
        .el-input__icon {
          line-height: 28px;
        }
      }
    }
    .el-select {
      .el-input__icon {
        line-height: 28px;
      }
    }
    .el-textarea__inner {
      padding: 0 8px;
      min-height: 26px;
      line-height: 26px;
    }
    .form-like-input {
      padding-left: 8px;
      padding-right: 8px;
      width: 100%;
      height: 28px;
      line-height: 28px;
    }
    .el-form-item__error {
      width: 200%;
    }
  }
}
.required-star::before {
  content: '*';
  margin-right: 4px;
  color: #ff4949;
}

.fixed-footer {
  position: fixed;
  left: 150px;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding: 15px 10px;
  line-height: 0;
  text-align: center;
  box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.2);
  transition: left 0.28s;
  background: #fff;
  .el-button {
    & + .el-button {
      margin-left: 10px;
    }
  }
}
.hideSidebar{
  .fixed-footer {
    left: 54px;
  }
}

// fee-popper-detail
.fee-popper-detail {
  .fee-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
    .fee-cell {
      display: block;
      line-height: 20px;
      font-size: 12px;
      & + .fee-cell {
        margin-top: 10px;
      }
      .fee-price {
        margin-left: 5px;
        color: #ff0000;
        font-size: 14px;
      }
    }
  }
}

.page-table {
  border: none;
  .el-table__cell {
    padding: 3px 0;
    border-right: none;
    .table-label-row {
      line-height: 20px;
      & + .table-label-row {
        padding-top: 2px;
      }
    }
  }
  .el-table__header thead {
    th {
      padding: 6px 0;
      height: 34px;
      background-color: #eef1f9;

      &.is-leaf{
        .cell {
          &::after {
            content: '';
            display: block;
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: 1px;
            background: #cdd9e6;
          }
        }
        &:last-child {
          .cell {
            &::after {
              display: none;
            }
          }
        }
      }
      .caret-wrapper {
        width: 19px;
        height: 19px;
        .ascending {
          top: -3px
        }
        .descending {
          bottom: -1px;
        }
      }
    }
  }
  .el-icon-document-copy {
    position: absolute;
    top: 50%;
    margin-top: -7px;
    margin-left: -13px;
    cursor: pointer;
    color: #2e74ff;
  }
  &::after {
    width: 0;
  }
  .cell {
    padding: 0 8px !important;
  }
  &.border-all {
    border-top: 1px solid #dfe6ec;
    border-right: 1px solid #dfe6ec;
    border-left: 1px solid #dfe6ec;
    .el-table__cell {
      border-right: 1px solid #dfe6ec;
    }
    .el-table__header thead {
      th {
        &.is-leaf{
          .cell {
            &::after {
              display: none;
            }
          }
        }
      }
    }
  }
  .table-warning-row {
    .el-table__cell {
      background-color: #ffeded !important;
    }
    .cell {
      color: #f56c6c;
    }
  }
}
.dialog-table {
  .el-table__cell {
    padding: 3px 0;
    .table-label-row {
      line-height: 20px;
      & + .table-label-row {
        padding-top: 2px;
      }
    }
  }
  .el-table__header thead {
    th {
      padding: 3px 0;
      height: 32px;
      background-color: #eef1f9;
      font-size: 12px;
      .caret-wrapper {
        width: 19px;
        height: 19px;
        .ascending {
          top: -3px
        }
        .descending {
          bottom: -1px;
        }
      }
    }
  }
  .el-icon-document-copy {
    position: absolute;
    top: 50%;
    margin-top: -7px;
    margin-left: -13px;
    cursor: pointer;
    color: #2e74ff;
  }
  .cell {
    padding: 0 6px !important;
  }
  &.border-all {
    border-top: 1px solid #dfe6ec;
    border-left: 1px solid #dfe6ec;
    .el-table__cell {
      border-right: 1px solid #dfe6ec;
    }
    .el-table__header thead {
      th {
        &.is-leaf{
          .cell {
            &::after {
              display: none;
            }
          }
        }
      }
    }
  }
}

.slot-unit {
  padding: 0 6px;
  color: #666;
}

.dialog-tabs-out {
  &.el-tabs {
    margin: -30px -20px;
    border: none;
    box-shadow: unset;
    .el-tabs__header {
      border-top: solid 1px #dfe4ed;
    }
  }
}